package com.yunlankeji.stemcells;

import android.app.Application;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Handler;

import androidx.multidex.MultiDex;

/**
 * Create by Snooker on 2020/8/20
 * Describe:
 */
public class BaseApplication extends Application {

    private static Context context;

    private static Handler sHandler = null;

    private static Bitmap bitmap = null;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        sHandler = new Handler();
        MultiDex.install(this);
//        NetWorkManager.getInstance().init();


    }

    public static Handler getHandler() {
        return sHandler;
    }

    public static Context getAppContext() {
        return context;
    }

    public static Bitmap getBitmap() {
        return bitmap;
    }

    public static void setBitmap(Bitmap bp) {
        bitmap = bp;
    }
}
